package com.wlps.service.impl;

import com.wlps.entity.Commodity;
import com.wlps.entity.Order;
import com.wlps.mapper.OrderMapper;
import com.wlps.service.IOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlps.vo.DispatchingManagementVo;
import com.wlps.vo.OperatorNumberVo;
import com.wlps.vo.OrderCommodityVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 订单表（Order）(1.当选择要退订的订单已经被调度了，不可以继续操作)(2.当用户输入换货数量大于所订购数量时，系统给出提示。)
                              (3.该订单状态已经配送完成才能进行换货处理)(4.该订单已经配送完成才能进行退货处理)
                              (5.当输入退货数量大于订购数量时，系统给出提示)
 服务实现类
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<DispatchingManagementVo> queryDispachment() {
        return orderMapper.queryDispachment();
    }

    @Override
    public OrderCommodityVo queryDetailById(long id) {
        return orderMapper.queryDetailById(id);
    }

}



































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































